/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2023. All rights reserved.
 * Description: UDK lcore src file
 * Author: -
 * Create: 2021.7.20
 */

#include "udk_lcore.h"
#include "udk_spinlock.h"

UDK_DEFINE_PER_LCORE(uint32_t, udk_lcore_id) = UDK_LCORE_ID_ANY;
uint32_t g_udk_lcore_id;
udk_spinlock_t lcore_id_lock;

int udk_lcore_init(void)
{
    g_udk_lcore_id = 0;
    udk_spinlock_init(&lcore_id_lock);

    return 0;
}
